
public class MusicBoxFactory {
	public static MusicBox getInstance (String className){
	  MusicBox mus=null;
	  if("PianoBox".equals(className)){
	    	mus=new PianoBox();
	  }
	  if("ViolinBox".equals(className)){
	     	mus=new ViolinBox();
	  }
	  return mus;
   }

}
